package com.sunkyc.module.book.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sunkyc.commons.annotation.DataScope;
import com.sunkyc.module.book.entity.SunkycBook;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * <p>
 * 权限图书测试数据 Mapper 接口
 * </p>
 *
 * @author sunkyc
 * @since 2022-06-10
 */
@DataScope
public interface SunkycBookMapper extends BaseMapper<SunkycBook> {

    @Override
    <P extends IPage<SunkycBook>> P selectPage(P page, @Param("ew")Wrapper<SunkycBook> queryWrapper);

    @Override
    int insert(SunkycBook entity);

    @Override
    int deleteBatchIds(@Param("coll") Collection<?> idList);

    @Override
    int updateById(@Param("et")SunkycBook entity);
}
